FROM golang:alpine

# author
MAINTAINER tdgui

# 挂载目录
VOLUME /opt/tdgui

# 创建目录
RUN mkdir -p /opt/tdgui

# 指定路径
WORKDIR /home/tdgui

COPY ./config.yaml /opt/tdgui/config.yaml

COPY ./link.conf /opt/tdgui/link.conf

COPY ./resource /opt/tdgui/resource

COPY ./entrypoint.sh /opt/tdgui/entrypoint.sh

COPY ./jar/tdgui /opt/tdgui/tdgui

RUN chmod +x /opt/tdgui/entrypoint.sh

RUN chmod +x /opt/tdgui/tdgui

EXPOSE 8020

#CMD /opt/sviwo/sviwo-api
CMD ["/bin/sh", "-c", "sleep 10 && /opt/tdgui/entrypoint.sh"]
